<?php
class Card{
    private $name;
    private $attack;
    private $defence;
    private $link;
    private $cost;
    private $effect;

    function __construct($name, $attack, $defence, $link, $cost, $effect){
        $this->setName($name);
        $this->setAttack($attack);
        $this->setDefence($defence);
        $this->setLink($link);
        $this->setCost($cost);
        $this->setEffect($effect);
    }

    public function getName(){
        return $this->name;
    }

    public function getAttack(){
        return $this->attack;
    }

    public function getDefence(){
        return $this->defence;
    }

    public function getLink(){
        return $this->link;
    }

    public function getCost(){
        return $this->cost;
    }

    public function getEffect(){
        return $this->effect;
    }

    public function setName($name){
        $this->name = $name;
    }

    public function setAttack($attack){
        $this->attack = $attack;
    }

    public function setDefence($defence){
        $this->defence = $defence;
    }

    public function setLink($link){
        $this->link = $link;
    }

    public function setCost($cost){
        $this->cost = $cost;
    }

    public function setEffect($effect){
        $this->effect = $effect;
    }
}
?>